package com.yuantu.judiciary.constant;

import lombok.AccessLevel;
import lombok.RequiredArgsConstructor;

/**
 * 通用常量信息
 *
 * @author ruoyi
 */
@RequiredArgsConstructor(access = AccessLevel.PRIVATE)
public final class DefaultConstants {

    /**
     * 字符集：UTF-8、GBK
     */
    public static final String UTF8 = "UTF-8";
    public static final String GBK = "GBK";

    /**
     * 请求：http、https
     */
    public static final String HTTP = "http://";
    public static final String HTTPS = "https://";

    /**
     * 请求方式
     */
    public static final String HTTP_METHOD_POST = "POST";
    public static final String HTTP_METHOD_GET = "GET";

    /**
     * 默认状态：有效、无效
     */
    public static final String DEFAULT_STATUS_NORMAL = "0";
    public static final String DEFAULT_STATUS_INVALID = "1";

    /**
     * 项目负责人默认角色：项目经理，项目指导老师，项目创建老师
     */
    public static final String PROJECT_ROLE_PRINCIPAL= "project_manager";
    public static final String PROJECT_ADVISOR = "project_advisor";
    public static final String PROJECT_CREATOR = "project_creator";

    /**
     * 项目角色类型：非项目角色，项目角色
     */
    public static final Integer ROLE_NOT_IN_PROJECT = 0;
    public static final Integer ROLE_IN_PROJECT = 1;

    /**
     * 默认项目角色ID（教师、学生）
     */
    public static final Long DEFAULT_ROLE_TEACHER_ID = 1L;
    public static final Long DEFAULT_ROLE_STUDENT_ID = 2L;

    /**
     * 服务名称
     */
    public static final String SERVER_NAME_USER = "yt-user-server";

    public static final String SERVER_NAME_KNOWLEDGE = "yt-knowledge-server";

    /**
     * 时间格式
     */
    public static final String WHOLE_TIME = "yyyy-MM-dd HH:mm:ss";
    public static final String DAY_BEGIN = "yyyy-MM-dd 00:00:00";
    public static final String DAY_END = "yyyy-MM-dd 23:59:59";
    public static final String YEAR_MONTH_DAY = "yyyy-MM-dd";

    /**
     * 默认可以看到所有课程的用户角色
     */
    public static final String COURSE_PERMISSION_ROLE = "老师";

    /**
     * 请求头用户名称
     */
    public static final String REAL_NAME = "X-RealName";

    /**
     * 字典值
     */
    public static final String DICT_PROJECT_ROLE = "project_role";
    public static final String DICT_SCHOOL_PROFESSION = "school_profession";

}
